package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    //上传科室
    void saveDepartment(Map<String, Object> paramMap);
    //带分页查询科室信息
    Page selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo);
    //删除科室
    void removeDepartment(String hoscode, String depcode);
    //根据医院编号，查询医院所有科室列表
    List<DepartmentVo> findDeptTree(String hoscode);
    //根据医院编号，科室编号查询科室名称
    String getDepName(String hoscode, String depcode);
    //根据医院编码+科室编码获取科室信息
    Department getDepartment(String hoscode, String depcode);
}
